package net.flydy.ywxcx.wxcloudrun.dto;

import lombok.Getter;
import lombok.Setter;
import net.flydy.ywxcx.wxcloudrun.vo.BaseRequest;
import net.flydy.ywxcx.wxcloudrun.vo.BaseResponse;


import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author flydy
 */

@Setter
@Getter
public class BaseDTO<Req extends BaseRequest,Res extends BaseResponse> {

    /**
     * 请求的接口
     * login, register ....
     */
    public String reqInterface;

    public String reqIp;

    public Date startTime;
    public Date endTime;
    public long cost;

    public Map<String, Object> logInfo = new HashMap<>();

    public String otherDesc;

    public String exceptionInfo;

    public Req request;

    public Res response;

}
